import Vue from 'vue'
import App from './layouts/app.vue'
Vue.config.productionTip = false


//全局资源 会优化
import './assets/css/base.css'
import './assets/js/font.js'


//引入路由配置
import router from './plugins/router.js'

//引入vant的配置
import './plugins/vant.js'

//引入axios的配置
import './plugins/axios.js'

//引入服务器地址
import {url} from './serve.js'

import store from './plugins/vuex.js'

let user = window.localStorage.getItem('user')
user = user ? JSON.parse(user) : {
		err:2,
		msg:'账号或密码错误',
		token:'',
		data:{}
	}
store.commit('user/user',user)
Vue.prototype.$serverUrl = url;
new Vue({
  render:h=>h(App),
  store,
  router
}).$mount('#app')
